package cn.ichiva.puppet.example.base.p2;

import javafx.fxml.FXML;
import javafx.fxml.FXMLPath;
import javafx.fxml.impl.AbstractPuppetComponent;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;

/**
 * 条件渲染,事件绑定
 */
@FXMLPath("l2-view.fxml")
public class L2FxmlDemo extends AbstractPuppetComponent {

    @FXML
    private Label welcomeText;

    @FXML
    protected void onHelloButtonClick() {
        welcomeText.setText("Welcome to JavaFX Application!");
    }
}
